package sport.media;
import javax.microedition.media.Manager;
import javax.microedition.media.MediaException;

public class MMAPIBeepBell implements IBell {
    int tone = 107;
    public void ringsStart() {
        try {
            Manager.playTone(tone, 1000, 100);
        } catch (MediaException ex) {
            ex.printStackTrace();
        }
    }

    public void ringsRest() {
        try {
            Manager.playTone(tone, 500, 100);
            Manager.playTone(tone, 150, 0);
            Manager.playTone(tone, 1000, 100);
        } catch (MediaException ex) {
            ex.printStackTrace();
        }    }

    public void ringsEnd() {
        try {
            Manager.playTone(tone, 500, 100);
            Manager.playTone(tone, 150, 0);
            Manager.playTone(tone, 500, 100);
            Manager.playTone(tone, 150, 0);
            Manager.playTone(tone, 1500, 100);
        } catch (MediaException ex) {
            ex.printStackTrace();
        }    }
}
